package com.zgzg.shop.pay.business.common.component;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * @Author: wangyy
 * @Date: 2023/2/2 10:25
 */
public class AsyncTransactionalEvent extends ApplicationEvent {
    @Getter
    private Runnable task;
    @Getter
    private String id;

    public AsyncTransactionalEvent(Object source, String id, Runnable task) {
        super(source);
        this.id = id;
        this.task = task;
    }
}
